package simtester.server



import grails.test.mixin.*
import org.junit.*

/**
 * See the API for {@link grails.test.mixin.domain.DomainClassUnitTestMixin} for usage instructions
 */
@TestFor(TestSuite)
class TestSuiteTests {

    @Test
    void createTestSuiteSuccessfully() {
       def u = new User(username: 'testuser', password: 'pass')
       def team = new Team(name: 'svt')
       def tc = new TestCase(name: 'MyTestCase', script: 'my script', owner: u, team: team)
       def ts = new TestSuite(name: 'My Suite', type: 'GUI', owner: u, team: team)
       ts.addToTestcases(tc)
       assert ts.validate()
    }
}
